import fetch from '@/api'

//列表
export function getShiftSearchList(params) {
    return fetch({
        method: 'get',
        url: `/inventoryMove/page`,
        params,
    })
}

//明细列表
export function getShiftDetailList(planNo,params) {
    return fetch({
        method: 'get',
        url: `/inventoryMove/detail/page/${planNo}`,
        params,
    })
}
// 新增
export function addShift(data) {
    return fetch({
        method: 'POST',
        url: `/inventoryMove/create`,
        data
    })
}

// 编辑
export function updateShift(planNo,data) {
    return fetch({
        method: 'POST',
        url: `/inventoryMove/update/${planNo}`,
        data
    })
}

// 删除
export function deleteShift(planNo) {
    return fetch({
        method:'delete',
        url:`/inventoryMove/${planNo}`
    })
}


// 移位新增查询实物
export function getFindInventory(params) {
    return fetch({
        method: 'get',
        url: `/inventoryMove/find/inventory`,
        params,
    })
}